<extend name="Public/base"/>

<block name="style" >
    <style>
        table{
            font-size: 12px;
        }
    </style>
</block>

<block name="body">
    <div class="row">
        <div class="col-md-12">
            <div class="block-web">
                <div class="header">
                    <div class="actions_diy" >
                        <a href="javascript:;" onclick="_es_openDilog902('{:U('add_grant')}','新增赠款金额规则')" class="btn btn-default btn-primary"><i class="fa fa-plus"></i>新增赠款金额规则</a>
                    </div>
                    <h3 class="content-header">赠款金额规则管理</h3>
                </div>
                <div class="porlets-content">
                    <div class="table-responsive">

                        <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline" role="grid">
                            <div class="row">
                                <div class="col-md-12">
                                    <div id="load_tb_div"></div>

                                </div>
                            </div><!--/table-responsive-->
                        </div><!--/porlets-content-->


                    </div><!--/block-web-->
                </div><!--/col-md-12-->
            </div>
        </div>
    </div>


</block>

<block name="script">
    <include file="Public:artdialog" />

    <!--  弹窗插件引用 update by nirunfa 2015-12-20  -->
    <script src="/Public/static/layer/layer.js"></script>

    <script type="text/javascript">

        $(function(){
            load();
        });
        function load(){
            var init_url="{:U('grant_list')}";
            var url=  init_url;
            var load_DIV=  'load_tb_div';
            _load_html_byurl(url,load_DIV)
        }


        function del_one(url) {
            art.dialog.confirm('您确认要删除此条数据？', function () {
                $.post(url, function (data) {
                    art.dialog.tips(data.info, 2);
                    _load_html_byurl("{:U('grant_list')}","load_tb_div");
                });
            }, function () {
            });
        }


        function goSearch_001(obj){
            var load_DIV=  $("#searchForm").attr("data-target");
            goSearch(obj,load_DIV);
        }

    </script>
</block>